<?php $route_column = isset($this->params['route_column']) ? $this->params['route_column'] : 'id' ?>
	public function executeDeleteVersion(sfWebRequest $request)
	{
		$request->checkCSRFProtection();

		$id = $request->getParameter('<?php echo $route_column ?>');
		$version = $request->getParameter('version');

		$table = AuditoriaEntidadTable::getInstance();

		try
		{
			$table->deleteVersions('<?php echo $this->getModelClass() ?>', '<?php echo $route_column ?>', $id, $version);
			$this->getUser()->setFlash('notice','La versión seleccionada se ha borrado correctamente.');
		}
		catch (Exception $e)
		{
			$this->getUser()->setFlash('error', 'Se ha producido un error al borrar la versión seleccionada.');
			$this->logError($e->getMessage());
		}

		$this->redirect('@<?php echo $this->getUrlForAction('historic?'),$route_column ?>=' . $id);
	}
